<?php

namespace common\models\trade;

use Yii;

/**
 * This is the model class for table "{{%trade_account_paymode}}".
 *
 * @property int $id
 * @property int $account_id 账户ID
 * @property string $paymode 收款方式
 */
class TradeAccountPaymode extends \common\db\ActiveRecord {

    const STATUS_DELETED = 0;
    const STATUS_ACTIVE = 10;

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%trade_account_paymode}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['account_id'], 'integer'],
            [['paymode'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'account_id' => '账户ID',
            'paymode' => '收款方式',
        ];
    }

}
